#include "../begonia.h"
#include "tempbullet.h"

tempbullet::tempbullet(double tx,double ty,double tr,double tvx,double tvy,double lifespan,bullet *h):bullet(tx,ty,tr,tvx,tvy,h)
    {
        tdie=t+lifespan;
    }
void tempbullet::clone(bullet *h)
    {
        tempbullet *a=new tempbullet(x,y,r,vx,vy,0,h);
        a->c_r=c_r;
        a->c_g=c_g;
        a->c_b=c_b;
    }
bool tempbullet::move()
{
        if(bullet::move())
            if(t>=tdie) remove();
            else return true;
        return false;
}
